import request from '@/utils/request'

// 获取媒体类型
export const getMediaTypeList = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/getMediaTypeList',
		method: 'get',
		params: params
	});
}

// 查询列表数据
export const listBrowse = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/listBrowse',
		method: 'post',
		data: params
	});
}

// 修改情感倾向性
export const editEmotionalPolarity = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/editEmotionalPolarity',
		method: 'post',
		params: params
	});
}

// 修改级别推断
export const editLevelInference = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/editLevelInference',
		method: 'post',
		params: params
	});
}


// 删除数据
export const remove = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/remove',
		method: 'post',
		data: params
	});
}

// 修改通用监测数据标签-lxw
export const editDataTags = (params) => {
	return new request({
		url: './web-data-general/generalMonitoringTags/editDataTags',
		method: 'post',
		data: params
	});
}

// 事件追踪数据查询相似列表
export const getSimilarList = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/getSimilarList',
		method: 'post',
		params: params
	});
}

// 事件追踪数据相似列表查看详情
export const getSimilarDetail = (params) => {
	return new request({
		url: './public_sentiment_three/eventAnalyze/getSimilarDetail',
		method: 'post',
		params: params
	});
}


// 查询结果列表
export const getResultList = (params) => {
	return new request({
		url: './public_sentiment_three/yqtj/yqtjImageSimilarityResults/getResultList',
		method: 'get',
		params: params
	});
}
// 查询图片列表
export const getTaskList = (params) => {
	return new request({
		url: './public_sentiment_three/yqtj/yqtjImageSimilarityTasks/getTaskList',
		method: 'get',
		params: params
	});
}
// 创建任务
export const saveOrUpDate = (params) => {
	return new request({
		url: './public_sentiment_three/yqtj/yqtjImageSimilarityTasks/saveOrUpDate',
		method: 'post',
		data: params
	});
}
//导出数据
export const getThreeExcel = (ids) => {
	return new request({
		url: './public_sentiment_three/yqtj/yqtjImageSimilarityResults/getExcel?ids=' + ids,
		method: 'get',
		responseType: 'blob',
	});
}
//删除
export const DeleteThreeList = (id, ids) => {
	return new request({
		url: './public_sentiment_three/yqtj/yqtjImageSimilarityResults/remove?id=' + id + '&ids=' + ids,
		method: 'delete',
	});
}
